<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
</body>
</html>
<script>
    // import * as xx from './text.js';



//import()异步处理引入文件
  // import('./text.js').then(res=>{
  //   console.log(res.add(2,2));
  // })

//同步处理
  // (async function(){
  //   const {add,sub} = await import('./text.js');
  //   console.log(sub(2,1));
  // })()
</script>